
objects = loader.o testLink.o

loader1.bin : loader1.tmp
	objcopy -O binary -j .text loader1.tmp loader1.bin

loader1.tmp : $(objects)
	ld -T link.ld -o loader1.tmp $(objects)

loader.o : loader.asm
	fasm loader.asm loader.o

testLink.o : testLink.cpp
	g++ testLink.cpp -c -Os -D _x64_ -I D:\OS4 -o testLink.o

.PHONY : cleanobj
cleanobj :
	-rm loader1.tmp $(objects)
